// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-1-17

#ifndef __BASE_PATHSTRING_H_COMMON_SVR_BASE__
#define __BASE_PATHSTRING_H_COMMON_SVR_BASE__

#pragma once


namespace JoyServer
{

//##ModelId=44CEFAD100FB
class CJoyPathString
{
public:
	//##ModelId=44CEFAD100FC
    CString m_value;

	//##ModelId=44CEFAD100FD
    bool operator == (const CJoyPathString& str) const
    {
        return 0 == stricmp(m_value, str.m_value);
    }
};


} // namespace JoyServer


template<>
AFX_INLINE UINT AFXAPI HashKey<const JoyServer::CJoyPathString&>(const JoyServer::CJoyPathString& name)
{
    UINT nHash = 0;

    const char* key = name.m_value;

	while (*key)
		nHash = (nHash<<5) + nHash + tolower(*key++);

	return nHash;
}

#endif  // __BASE_PATHSTRING_H_COMMON_SVR_BASE__
